package projet.service;

import java.util.List;

import projet.dao.DAOFactoryInterface;
import projet.dao.SessionDAOInterface;
import projet.entity.Client;

public class ViewClientsService {
	
	public List<Client> getClients(Long id) {
		DAOFactoryInterface daoFactory = DAOUtil.getDAOFactory();
		SessionDAOInterface sessionDAO = daoFactory.getSessionDAO();
		
		List<Client> clients = sessionDAO.getClients(id);
		return clients;
	}

}
